﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace DiamondDash.Views
{
    public partial class OpRespItemView : UserControl
    {
        public OpRespItemView()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 显示点击反馈
        /// </summary>
        /// <param name="isError"></param>
        public void ShowOpResp(bool isError = false)
        {
            if (isError)
            {
                this.imageError.Visibility = System.Windows.Visibility.Visible;
                this.imageSpark.Visibility = System.Windows.Visibility.Collapsed;
                this.StoryboardShowError.Begin();
            }
            else
            {
                this.imageError.Visibility = System.Windows.Visibility.Collapsed;
                this.imageSpark.Visibility = System.Windows.Visibility.Visible;
                this.StoryboardShowSpark.Begin();
            }

        }
    }
}
